// import _ from 'lodash';
import './style.css';

function component() {
    const element = document.createElement('div');
    element.className = 'red';
    // Lodash（目前通过一个 script 脚本引入）对于执行这一行是必需的
    element.innerHTML = join(['Hello', 'webpack1'], ' ');
    element.onclick = () => import(/* webpackChunkName: "print" */'./print.js').then(module => {
        module.default()
    });
    return element;
}

function avatar() {
    const avatar = document.createElement('span');
    avatar.className = 'avatar';
    return avatar;
}


document.body.appendChild(component());
document.body.appendChild(avatar());
